/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package schema;

/**
 *
 * @author Antonio
 */
public class Coordinate {

    private int riga;
    private int colonna;

    public Coordinate(int riga, int colonna) {
        this.riga = riga;
        this.colonna = colonna;
    }

    public int getRiga() {
        return riga;
    }

    public int getColonna() {
        return colonna;
    }

    @Override
    public String toString() {

        return "(" + "riga=" + riga + ", colonna=" + colonna + ')';
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Coordinate other = (Coordinate) obj;
        if (this.riga != other.riga) {
            return false;
        }
        if (this.colonna != other.colonna) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 29 * hash + this.riga;
        hash = 29 * hash + this.colonna;
        return hash;
    }
}
